{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_global')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_system_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_template')} {:lang('v_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_edit')} {:lang('v_template')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li class="text-danger">{$template_path}{:input('mulu')}/</li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="row">
                                    <div class="col-md-12 mb-3">
                                        {if !empty(input('mulu'))}
                                            <a href="{:url('/templatemanage/mululist',['lang'=>$lang,'mulu'=>$goback])}" class="btn btn-info mb-2 mr-2"><i class="fa fa-reply-all mr-1"></i>{:lang('v_mulu_goback')}</a>
                                        {/if}
                                        <a href="{:url('/templatemanage/creatfolder',['lang'=>$lang,'mulu'=>input('mulu')])}" data-target="#modal" data-toggle="modal" class="btn btn-warning text-white mb-2 mr-2"><i class="fa fa-folder mr-1"></i>{:lang('v_addnew')} {:lang('v_module_mulu')}</a>
                                        <a href="{:url('/templatemanage/creatfile',['lang'=>$lang,'mulu'=>input('mulu')])}" class="btn btn-success mb-2"><i class="fa fa-plus-circle mr-1"></i>{:lang('v_addnew')} {:lang('v_document')}</a>
                                    </div>
                                </div>
                                <form name="form_list" id="form_list" action="" method="post" class="table mb-3">
                                    {notempty name="list->data"}
                                        <!--列表 开始-->
                                        <div class="row">
                                            {volist name='$list->data' id='mulu'}
                                            <div class="col-md-2 col-sm-4 col-xs-6 mb-5">
                                                <div class="position-relative shadow-sm border rounded px-2 py-3 text-center">
                                                    <span class="check_position"><input type="checkbox" name="selectid[]" id="selectid" value="{:input('mulu')}/{$mulu}"></span>
                                                    {php}
                                                        $muluArr = explode('.',$mulu);
                                                        if(count($muluArr) > 1){
                                                            $suffix = $muluArr[count($muluArr)-1];
                                                        }else{
                                                            $suffix = 'mulu';
                                                        }
                                                    {/php}
                                                    {switch $suffix}
                                                        {case gif|png|jpg|bmp}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-image fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case zip|rar}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-book text-danger fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case doc|docx}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-word text-primary fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case xls|xlsx}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-excel text-success fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case pdf}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-pdf text-danger fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case ppt|pptx}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-powerpoint text-danger fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case flv|avi|rm|wmv|rmvb|mp4|mpg|mpeg|3gp|mov}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-video text-secondary fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case mp3|cda|wav|wma}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-audio text-yellow fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case txt}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-alt fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case bak|php|aspx|asp|css}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-archive text-purple fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                        {/case}
                                                        {case html|htm}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fab fa-internet-explorer text-primary fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <a href="{:url('/templatemanage/edit',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu,'filename'=>$mulu])}" class="btn btn-xs btn-success px-2 rounded"><i class="fas fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                        {/case}
                                                        {case mulu}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fa fa-folder text-yellow fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <a href="{:url('/templatemanage/mululist',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}" class="btn btn-xs btn-success px-2 rounded"><i class="fas fa-folder-open mr-1"></i>{:lang('v_open')}</a>
                                                        {/case}
                                                        {default /}
                                                            <span onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'mulu'=>input('mulu').'/'.$mulu])}','','');" class="btn btn-xs btn-danger px-2 rounded"><i class="fas fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                            <div class="my-2">
                                                                <i class="fas fa-file-audio text-warning fa-3x"></i><br>{$mulu|msubstr=0,12}
                                                            </div>
                                                            <span class="btn btn-xs">&nbsp;</span>
                                                    {/switch}
                                                </div>
                                            </div>
                                            {/volist}
                                            <div class="clearfix"></div>
                                        </div>
                                        <!--列表 结束-->
                                        <div class="row">
                                            <div class="col-xl-6 mt-2"><div class="float-lg-left mr-4">{$list->render|raw}</div><div class="float-lg-left">{:lang('v_total')} {$list->page} / {$list->pageNum} {:lang('v_page')} {$list->total} {:lang('v_records')}</div></div>
                                            <div class="col-xl-6 mt-2 mt-md-1">
                                                <div class="float-left float-xl-right">
                                                    <!-- 全选 -->
                                                    <button type="button" class="btn btn-info mr-2 checkbox-toggle"><i class="far fa-fw fa-square mr-1"></i>{:lang('v_select_all')}</button>
                                                    <!-- 真实删除 -->
                                                    <button type="button" class="btn btn-danger" onClick="javascript:do_confirm('#form_list','','{:url('/templatemanage/delfile',['lang'=>$lang,'deleteall'=>'yes'])}','','');"><i class="fa fa-fw fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                </div>
                                            </div>
                                        </div>
                                    {/notempty}
                                    <div class="clearfix"></div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>